package br.com.fogas.database.entidade;

import java.io.Serializable;
import java.util.Date;

import br.com.fogas.database.IMetadata;

import com.j256.ormlite.field.DataType;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName=IMetadata.ISincronizacao.table_name)
public class Sincronizacao implements IMetadata, Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@DatabaseField(generatedId = true, columnName=ISincronizacao.id)
	private Integer id;
	
	@DatabaseField(width=50, columnName=ISincronizacao.tx_ws_name)
	private String tx_ws_name;
	
	@DatabaseField(width=19, dataType = DataType.DATE_STRING, format = "dd/MM/yyyy HH:mm:ss", columnName=ISincronizacao.ts_sync)
	private Date ts_sync;
	
	@DatabaseField(dataType = DataType.BOOLEAN, columnName=ISincronizacao.cs_sucess)
	private boolean cs_sucess;
	
	public Sincronizacao() {
		// TODO Auto-generated constructor stub
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTx_ws_name() {
		return tx_ws_name;
	}

	public void setTx_ws_name(String tx_ws_name) {
		this.tx_ws_name = tx_ws_name;
	}

	public Date getTs_sync() {
		return ts_sync;
	}

	public void setTs_sync(Date ts_sync) {
		this.ts_sync = ts_sync;
	}

	public boolean isCs_sucess() {
		return cs_sucess;
	}

	public void setCs_sucess(boolean cs_sucess) {
		this.cs_sucess = cs_sucess;
	}
}